import request from "@/utils/request"

export function getJsSignature(appId, url) {
  return request({
    url: '/mp/js/getSignature',
    method: 'get',
    params: {
      appId,
      url
    }
  })
}

export function getCardApiTicket(appId) {
  return request({
    url: '/mp/js/getCardApiTicket',
    method: 'get',
    params: { appId }
  })
}

export function getCardApiSignature(data) {
  return request({
    url: '/mp/js/getCardApiSignature',
    method: 'post',
    data: data
  })
}
